package web.suzy.oj.pojo.entity.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * YangSuzy 软件工作室
 * 类名: SysAuth
 * 描述: 权限表实体类
 * 功能: ---- 待定 -----
 *
 * @author YangSuzy
 * Date: 2022/11/4 11:55
 */
@Data
@EqualsAndHashCode(callSuper = false) //排除父类字段
@Accessors(chain = true) //开启链式编程
@ApiModel(value = "SysAuth对象")
public class SysAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "权限字符串")
    private String permission;

    @ApiModelProperty(value = "默认0可用，1不可用")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date modifiedTime;
}
